package com.ksyun.alert.service;

import com.ksyun.alert.entity.AlertRulesDO;

/**
 * 定时计算业务层接口
 * @author hantou
 * @date 2024-05-11
 */
public interface CalculateTimingService {
    /**
     * 瞬时数据计算
     * @param nowTimestamp 当前时间戳
     * @param alertRulesDO 告警规则
     */
    void doTransientCalculate(long nowTimestamp, AlertRulesDO alertRulesDO);

    /**
     * 区间数据计算
     * @param nowTimestamp 当前时间戳
     * @param alertRulesDO 告警规则
     */
    void doSectionCalculate(long nowTimestamp, AlertRulesDO alertRulesDO);

}
